package com.coldchain;

import com.spring4all.swagger.EnableSwagger2Doc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttributes;
@SpringBootApplication(scanBasePackages =  {"com.fangliai","com.coldchain"})
@EnableEurekaClient
@EnableFeignClients
@EnableSwagger2Doc
@Controller
@SessionAttributes("authorizationRequest")
public class AuthBootstrap {
    public static void main(String[] args) {
        SpringApplication.run(AuthBootstrap.class, args);
    }

    @RequestMapping("/src/main/java/com.coldchain.auth/v2/api-docs")
    public String  apiDoc(){
        return "redirect:/v2/api-docs";
    }
}
